package com.vpclub.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author : leimingchao
 * @date Date : 2021年06月22日 22:01
 */
@Component
public class Cat implements InitializingBean,DisposableBean {

    public Cat() {
        System.out.println("Cat constructor......");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("cat.....destory.......");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("cat.....afterPropertiesSet.......");
    }
}
